﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Microsoft.Xna.Framework;
using Microsoft.Xna.Framework.Audio;
using Microsoft.Xna.Framework.Content;
using Microsoft.Xna.Framework.GamerServices;
using Microsoft.Xna.Framework.Graphics;
using Microsoft.Xna.Framework.Input;
using Microsoft.Xna.Framework.Media;

namespace Tactics
{
    public class Sprite
    {
        public Texture2D sprite;
        public Vector2 pos;
        public bool alive;

        public Sprite()
        {
            sprite = null;
            pos = Vector2.Zero;
            alive = false;
        }

        public Sprite(Texture2D tex)
        {
            sprite = tex;
            pos = Vector2.Zero;
            alive = false;
        }

        public Sprite(Texture2D tex, Vector2 loc)
        {
            sprite = tex;
            pos = loc;
            alive = false;
        }

        public virtual int update(double elapsedTime)
        {
            if (!alive)
                return -1;
            return 0;
        }

        public virtual void draw(SpriteBatch sb)
        {
            sb.Draw(sprite, pos, Color.White);
        }
    }
}
